Repository navigation
Retain and reap testbed commands before lifecycle cleanup - #927
Gajesh2007 wants to merge 2 commits into
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
@codex review |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Codex Review: Didn't find any major issues. 👍 Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
|
Consolidated into #1096, the combined tooling, benchmark and E2E refactor PR. Your latest head |
Local testbed completion could race outstanding provider log output because it waited directly on
os.Process, and native Postgres reconstructed a display PID at shutdown without reaping the command it started. A malformed owned-helper event could also leave the helper blocked writing stdout while its controller waited for exit.The lifecycle now waits through
exec.Cmd, retains the native database's actual child handle, and closes a rejected helper stream before waiting. Native startup creates an exclusive temporary directory and cleans it on initialization/readiness failures; stop waits for graceful exit or escalates to kill, then removes owned data only after reaping. An unconfirmed termination retains the data and ownership record. Docker/native setup share the duplicate free-port and readiness loops, retaining their distinct probes and existing cadence.Before:
After:
flowchart TD P[Local provider child] --> PW[Cmd.Wait drains output and context cleanup] PW --> D[Confirmed command completion] N[Native Postgres] --> O[Retained command and done channel] O --> K[Interrupt then bounded kill fallback] K --> C{Reaped?} C -->|yes| RM[Remove only owned temporary data] C -->|unconfirmed| KEEP[Retain owned data and command for recovery] H[Malformed helper event] --> CL[Close control and rejected stdout pipes] CL --> W[Wait without blocking helper output] A[Docker and native startup] --> SH[Shared port allocation and readiness loop] SH --> PR[Existing backend-specific readiness probe]Validation: scoped provider/owned-host/config/KV/Postgres Go suites pass with
-race; all native lifecycle fixtures use harmless copies of the Go test binary behind PATH stubs, and all 18 Python owned-host fixtures pass. The new provider output-drain and malformed-stream regressions both fail on master and pass on this source. Additional fixtures cover graceful/forced native child retirement, init/readiness failure cleanup, display-ID independence and cancellation. Formatting, diff checks and docs lint pass.No Swift, model, GPU, actual database/Docker service, signing operation, production endpoint or SSH session was executed. Existing model/cache/measurement/config/environment policy and the owned-host lease/process-group/receipt protocol are preserved. This PR changes test infrastructure; it supplies no new model-performance or real two-host release evidence.
Need help on this PR? Tag
@codesmith-botwith what you need. Autofix is disabled.